<html>
<head><meta charset="utf-8"><title>Running tests on MUSL builder · t-infra · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/index.html">t-infra</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html">Running tests on MUSL builder</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213174155"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213174155" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213174155">(Oct 13 2020 at 15:36)</a>:</h4>
<p>I'm trying to get a run-make-fulldeps test to run on the test-various builder targeting MUSL: <a href="https://github.com/rust-lang/rust/pull/77901">https://github.com/rust-lang/rust/pull/77901</a></p>
<p>So far it looks like <code>x.py</code> refuses to run <em>any</em> test outside its own test suite, and I'm not really sure why. This is the behavior I get when I pass <code>--host=''</code> to <code>x.py</code> locally, but when <code>--target</code> is also passed this shouldn't happen, right? During normal CI this also seems to be working correctly.</p>



<a name="213174403"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213174403" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213174403">(Oct 13 2020 at 15:38)</a>:</h4>
<p>The command it runs is</p>
<blockquote>
<p>python3 /checkout/x.py --stage 2 test src/test/run-make-fulldeps --host= --target x86_64-unknown-linux-musl</p>
</blockquote>
<p>which seems correct?</p>



<a name="213175770"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213175770" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213175770">(Oct 13 2020 at 15:46)</a>:</h4>
<p>there were a lot of changes here lately, <span class="user-mention" data-user-id="116883">@tmandry</span> might know</p>



<a name="213178646"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213178646" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213178646">(Oct 13 2020 at 16:05)</a>:</h4>
<p>Yeah, <a href="https://github.com/rust-lang/rust/pull/77133">https://github.com/rust-lang/rust/pull/77133</a> has changed the behavior here. I feel like it should still work though, but maybe I'm completely misunderstanding how this works.</p>



<a name="213178809"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213178809" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213178809">(Oct 13 2020 at 16:06)</a>:</h4>
<p>Must have been my mistake, I'm now using the unmodified Dockerfile and it's building a compiler.</p>



<a name="213178900"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213178900" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213178900">(Oct 13 2020 at 16:07)</a>:</h4>
<p>Which means I'll waste a lot of time building NVPTX and WASM stuff, and running the whole testsuite, but oh well.</p>



<a name="213179005"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213179005" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213179005">(Oct 13 2020 at 16:08)</a>:</h4>
<p>(I didn't realize that we're running NVPTX tests, I thought that target was kinda dead)</p>



<a name="213179658"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213179658" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213179658">(Oct 13 2020 at 16:12)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span> let me know if you think there's a bug, happy to try and help with a command too</p>



<a name="213179689"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213179689" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213179689">(Oct 13 2020 at 16:12)</a>:</h4>
<p>I'm not entirely following this conversation :)</p>



<a name="213180583"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180583" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180583">(Oct 13 2020 at 16:18)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> Yeah, neither side of this commit does what I expect: <a href="https://github.com/rust-lang/rust/commit/27be2e006e660b2e8a39675cf661bc5a7e135b0b">https://github.com/rust-lang/rust/commit/27be2e006e660b2e8a39675cf661bc5a7e135b0b</a></p>
<p>They both result in no tests being run and no compiler being built</p>



<a name="213180612"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180612" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180612">(Oct 13 2020 at 16:18)</a>:</h4>
<p>in the builder or locally?</p>



<a name="213180652"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180652" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180652">(Oct 13 2020 at 16:19)</a>:</h4>
<p>i.e., do you think we broke testing on CI or is it not working for you personally?</p>



<a name="213180749"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180749" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180749">(Oct 13 2020 at 16:19)</a>:</h4>
<p>it looks like that test accidentally lost issue-36710 though</p>



<a name="213180758"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180758" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180758">(Oct 13 2020 at 16:19)</a>:</h4>
<p>that's a bug</p>



<a name="213180837"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180837" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180837">(Oct 13 2020 at 16:20)</a>:</h4>
<p>It's not working on CI</p>



<a name="213180895"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180895" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180895">(Oct 13 2020 at 16:20)</a>:</h4>
<p>That was intentional, it should run all run-make-fulldeps tests, right?</p>



<a name="213180921"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180921" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180921">(Oct 13 2020 at 16:20)</a>:</h4>
<p>hm, I don't think so</p>



<a name="213180948"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180948" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180948">(Oct 13 2020 at 16:21)</a>:</h4>
<p>well I don't know</p>



<a name="213180973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213180973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213180973">(Oct 13 2020 at 16:21)</a>:</h4>
<p>but it seems like the issue-36710 was intentional presumably?</p>



<a name="213181082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213181082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213181082">(Oct 13 2020 at 16:21)</a>:</h4>
<p>Yeah that's the test I want to run</p>



<a name="213181171"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213181171" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213181171">(Oct 13 2020 at 16:22)</a>:</h4>
<p>I think you can't have --host='' if you want fulldeps tests to run, that doesn't make sense</p>



<a name="213181180"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213181180" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213181180">(Oct 13 2020 at 16:22)</a>:</h4>
<p>But it didn't work, so I removed that part, hoping that it'd run all run-make-fulldeps tests that way</p>



<a name="213181289"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213181289" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213181289">(Oct 13 2020 at 16:23)</a>:</h4>
<p>Oh</p>



<a name="213181321"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213181321" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213181321">(Oct 13 2020 at 16:23)</a>:</h4>
<p>So no fulldeps tests are run on the musl builder?</p>



<a name="213181391"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213181391" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213181391">(Oct 13 2020 at 16:23)</a>:</h4>
<p>Actually I don't know why that needs to be a fulldeps test, it doesn't use any compiler parts</p>



<a name="213182010"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213182010" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213182010">(Oct 13 2020 at 16:28)</a>:</h4>
<p>Hm</p>



<a name="213182126"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213182126" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213182126">(Oct 13 2020 at 16:29)</a>:</h4>
<p>Yeah, the "successful" run doesn't run any <a href="https://github.com/rust-lang/rust/pull/77901/checks?check_run_id=1248651275">https://github.com/rust-lang/rust/pull/77901/checks?check_run_id=1248651275</a></p>



<a name="213182147"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213182147" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213182147">(Oct 13 2020 at 16:29)</a>:</h4>
<p>The test should fail on musl</p>



<a name="213182411"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213182411" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213182411">(Oct 13 2020 at 16:31)</a>:</h4>
<p>I guess it should just be moved to run make and then it should just work on builder and locally I think?</p>



<a name="213182500"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213182500" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213182500">(Oct 13 2020 at 16:32)</a>:</h4>
<p>trying that</p>



<a name="213182974"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213182974" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213182974">(Oct 13 2020 at 16:36)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span> that said, its a bug that it doesn't panic or warn that an explicitly selected thing isn't running</p>



<a name="213184971"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213184971" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213184971">(Oct 13 2020 at 16:52)</a>:</h4>
<p>I would appreciate it if you could file an issue and ping me</p>



<a name="213188704"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213188704" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213188704">(Oct 13 2020 at 17:21)</a>:</h4>
<p>Filed <a href="https://github.com/rust-lang/rust/issues/77906">https://github.com/rust-lang/rust/issues/77906</a></p>



<a name="213275935"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213275935" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213275935">(Oct 14 2020 at 11:41)</a>:</h4>
<p>Ah, so this is why most run-make tests are fulldeps: <a href="https://github.com/rust-lang/rust/blob/5565241f65cf402c3dbcb55dd492f172c473d4ce/src/bootstrap/test.rs#L1204">https://github.com/rust-lang/rust/blob/5565241f65cf402c3dbcb55dd492f172c473d4ce/src/bootstrap/test.rs#L1204</a></p>



<a name="213276051"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213276051" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213276051">(Oct 14 2020 at 11:43)</a>:</h4>
<p>If I make bootstrap also pass those values for run-make tests it works locally, but fails in the MUSL Docker container ("target <code>x86_64-unknown-linux-musl</code> is not configured as a host, only as a target")</p>



<a name="213276343"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213276343" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213276343">(Oct 14 2020 at 11:46)</a>:</h4>
<p>Seems like I need some cross compiler that can target MUSL then? Not sure...</p>



<a name="213278237"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213278237" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213278237">(Oct 14 2020 at 12:05)</a>:</h4>
<p>The Dockerfile does set <code>CXX_x86_64_unknown_linux_musl=x86_64-linux-musl-g++</code>, so I'd expect this to work already, hmm</p>



<a name="213280879"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213280879" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213280879">(Oct 14 2020 at 12:30)</a>:</h4>
<p>Okay, with a couple of bootstrap changes this seems to work now :)</p>



<a name="213283679"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213283679" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213283679">(Oct 14 2020 at 12:56)</a>:</h4>
<p>urg, it works locally but not in CI?</p>
<blockquote>
<p>clang: Command not found</p>
</blockquote>
<p>But they should both set <code>CXX_x86_64_unknown_linux_musl</code> to the same (correct) cross-compiler?</p>



<a name="213285057"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213285057" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213285057">(Oct 14 2020 at 13:06)</a>:</h4>
<p>How does <code>$(CXX)</code> even end up expanding to <code>clang</code>? <a href="https://github.com/alexcrichton/cc-rs/blob/107493d6d54bc6d207ed96a9e1f98d92cccc8a04/src/lib.rs#L1962">cc-rs</a> only falls back to <code>clang</code> if <code>self.cpp</code> is unset, but it isn't.</p>



<a name="213291868"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213291868" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213291868">(Oct 14 2020 at 13:58)</a>:</h4>
<p>Heh, I had the same problem with the macOS aarch64 stuff.</p>



<a name="213291970"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213291970" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213291970">(Oct 14 2020 at 13:59)</a>:</h4>
<p>In my case, the line <code>ciCommandSetEnv CXX "${bindir}/clang++"</code> was relevant, but that's guarded by an "if macOS"</p>



<a name="213307624"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/Running%20tests%20on%20MUSL%20builder/near/213307624" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/Running.20tests.20on.20MUSL.20builder.html#213307624">(Oct 14 2020 at 15:32)</a>:</h4>
<p>Turns out this is a WASM-only issue, so I just ignored the test there</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>